package com.huali.pattern.factory.factorymethod.pizzastore.order;

import com.huali.pattern.factory.factorymethod.pizzastore.pizza.BJCheesePizza;
import com.huali.pattern.factory.factorymethod.pizzastore.pizza.Pizza;

public class BJOrderPizza extends OrderPizza {


    @Override
    Pizza createPizza(String orderType) {
        Pizza pizza = null;
        if (orderType.equals("cheese")) {
            pizza = new BJCheesePizza();
        }

        return pizza;
    }

}
